#ifndef PM_PANEL_TAG_H_INCLUDED
#define PM_PANEL_TAG_H_INCLUDED

#include "paneltaggui.h"
#include "pm/tag.h"
#include "pmevent.h"

class PanelTag : public PanelTagGui
{
public:
	PanelTag(wxWindow* parent);
	
protected:
	void ConnectPmEvents();
	void DisconnectPmEvents();

	void AddTag(const pm::Tag& tag);
	void SetTag(int i, const pm::Tag& tag);

	void OnConnectPmEvents(wxCommandEvent& event);
	void OnProjectLoaded(wxCommandEvent& event);
	void OnTagRemoved(pmEvent<db::ID>& event);

	void OnAddTag( wxCommandEvent& event );
	void OnDelTag( wxCommandEvent& event );
	void OnTagActivated( wxCommandEvent& event );
};

#endif // PM_PANEL_TAG_H_INCLUDED
